<table class="layui-table" lay-filter="edit-table" lay-data="{method: 'post',loading:'true', url:'{:url('Lease/temporaryContractLog')}', page:true, id:'idDemo'}" lay-filter="test">
    <thead>
    <tr>
        <th lay-data="{field:'member_name'}">姓名</th>
        <th lay-data="{field:'member_tel'}">电话</th>
        <th lay-data="{toolbar:'#member_sex'}">性别</th>
        <th lay-data="{field:'contractcar_company'}">单位</th>
        <th lay-data="{toolbar:'#time',width:310,}">用车时间</th>
        <th lay-data="{toolbar:'#contractcar_type',width:100,}">用车类型</th>
        <th lay-data="{field:'car_plate',width:100,}">车牌号</th>
        <th lay-data="{field:'drive_name',width:140,}">驾驶员</th>
        <th lay-data="{field:'drive_tel',width:140,}">驾驶员电话</th>
        <th lay-data="{toolbar:'#status',width:140,}">状态</th>
    </tr>
    </thead>
</table>

<script type="text/html" id="time">
    {{ d.contractcar_bigontime }} ~ {{ d.contractcar_endtime }}
</script>

<script type="text/html" id="member_sex">
    {{#  if(d.member_sex == 1){ }}
    男
    {{#  } else if(d.member_sex == 2){ }}
    女
    {{#  } }}
</script>

<script type="text/html" id="contractcar_type">
    {{#  if(d.contractcar_type == 1){ }}
    驾驶员+车
    {{#  } else if(d.contractcar_type == 2){ }}
    驾驶员
    {{#  } else if(d.contractcar_type == 3){ }}
    车
    {{#  } }}
</script>

<script type="text/html" id="status">
    {{#  if(d.contractcar_status == 3){ }}
    已拒绝
    {{#  } else{ }}
    已同意
    {{#  } }}
</script>





